/*
 * @Description:
 * @Version: 2.0
 * @Autor: wangmiao
 * @Date: 2022-07-22 10:36:34
 * @LastEditors: wangmiao
 * @LastEditTime: 2022-07-25 16:42:22
 */

// 总线注册

import { useCounterStoreForOption } from "./demo";

export interface IAppStore {
  counterStoreForOption: ReturnType<typeof useCounterStoreForOption>;
}

const appStore: IAppStore = {} as IAppStore;

// 注册全局状态
export const registerStore = () => {
  appStore.counterStoreForOption = useCounterStoreForOption();
};

export default appStore;
